#!/bin/bash

source /opt/ros/foxy/setup.bash
source /home/nvidia/ros2_ws/install/setup.bash
sleep 1
#sudo chmod 777 /dev/ttyTHS0

ros2 launch mavros px4.launch &


sleep 8

ros2 launch fcu_comm fcu_comm.launch & 


sleep 5

ros2 run new_cluster Cluster_formation_control_node_new &

#DDS2ROS
sleep 5
cd ~/ros2_ws/install/dds2ros

./DDS2ROS &

sleep 5

cd ~/ros2_ws
ros2 run behavior-process behavior-node &

#xe_thru
ros2 launch xe_thru x4m300.launch.xml &
sleep 1

#usbcam
ros2 launch usb_cam_pkg mt2303u.launch &

#multisp
ros2 launch multispectral_camera multispectral_camera.launch.xml &

#q10
ros2 launch q10f_pkg q10f.launch &

#video
ros2 launch video_distribution video_distribution.launch.py &



#sleep 5

#gnome-terminal -- bash -c "source /opt/ros/foxy/setup.bash; source ~/ros2_ws/install/setup.bash;  bash $basepath/check_restart.sh;"





